package com.luoc.spring.visitPattern;

/**
 * @author luoc
 * @version 1.0
 * @date 2021/3/19 9:35
 * @since 1.0
 */
public class VisitorImpl implements Visitor {

    @Override
    public void visit(Manager m) {
        System.out.println("visit Manager");
    }

    @Override
    public void visit(Engineer e) {
        System.out.println("visit Engineer");
    }
}
